<%@ page import="com.sg.service.SubjectService" %>
<%@ page import="com.sg.pojo.Subject" %><%--
  Created by IntelliJ IDEA.
  User: rosekon
  Date: 2022/7/1
  Time: 12:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String sbName = request.getParameter("sbName");
    Integer classHour = Integer.valueOf(request.getParameter("classHour"));
    Long gradeId = Long.valueOf(request.getParameter("gradeId"));
    int add = SubjectService.ME.add(new Subject(sbName, classHour, gradeId));

%>
<%
    if(add>0){
%>
<h2>添加成功</h2>
<%
}
else{
%>
<h2>添加失败</h2>
<%
    }
%>





</body>
</html>
